package com.gdcvi.scan;

import java.io.Serializable;
import java.util.Random;

/**
 * Computer：电脑类
 */
public class Computer extends Player{
    /**
     * 电脑出拳
     * @return
     */
    @Override
    public Hand chuQuan() {
        Random random=new Random();
        int num = random.nextInt(Hand.MAX_CODE)+1;
        return new PalyFactory().createHand(num);
    }
}
